package org.practice.model;

public class Account{
	private Company company;
	
	private String name;
    
	private int age;
	
	public Account(){
		this.company=new Company();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	
	//计算积分
	public int calculateScore(int x, int y, int z){
		int k = 0, j = 0;//语句块1 statement block
		if (x>3&&z<10){//语句块2{}
			k = x * y - 1; 
			j = (int) Math.sqrt(k);
		}
		if (x==4||y>5){//语句块3{}
			j = x * y + 10; 
		}
		
		j = j % 3;// 语句块4
		return j;// 语句块4
	}
}
